package com.tencent.wxpay.service;

import com.tencent.wxpay.common.Configure;
import com.tencent.wxpay.protocol.request.RefundQueryReqData;

/**
 * 查询退款接口
 */
public class RefundQueryService extends BaseService{
    /**
     * 查询退款接口构造方法，设置接口url
     * @throws IllegalAccessException
     * @throws InstantiationException
     * @throws ClassNotFoundException
     */
    public RefundQueryService() throws IllegalAccessException, InstantiationException, ClassNotFoundException {
        super(Configure.REFUND_QUERY_API);
    }

    /**
     * 请求查询退款接口
     * @param refundQueryReqData 这个数据对象里面包含了API要求提交的各种数据字段
     * @return API返回的XML数据
     * @throws Exception
     */
    public String request(RefundQueryReqData refundQueryReqData) throws Exception {
        return sendPost(refundQueryReqData);
    }
}
